textview: Add draw_layer vfunc
authorAlexander Larsson <alexl@redhat.com>
Mon, 28 Jul 2014 13:20:52 +0000 (15:20 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 28 Jul 2014 14:23:33 +0000 (16:23 +0200)
commit5b53eb287c170d21de149b088be5a3608349139b
tree9e89df453b66fb0534492fe79f9324f4655d8f1e
parent4fe051bb4a017d2840f2b0f4299512971f17a837
textview: Add draw_layer vfunc

This allows subclasses to render things below and above the text
in the text view. This allows e.g. GtkSourceView to highlight the
cursor row and to render overlays for colum 80. This used to be done
by rendering before/after chaining up to the parent, but that doesn't
work anymore since the view now renders a background, and due to the
use of the pixel cache.
gtk/gtktextview.c
gtk/gtktextview.h